package org.jeecg.modules.inventory.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.inventory.entity.BussInventoryDetails;
import org.jeecg.modules.inventory.entity.BussInventoryInoutDetails;
import org.jeecg.modules.inventory.entity.BussInventory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.inventory.vo.BussInventoryPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 库存管理
 * @Author: jeecg-boot
 * @Date:   2024-07-01
 * @Version: V1.0
 */
public interface IBussInventoryService extends IService<BussInventory> {

	/**
	 * 添加一对多
	 *
	 * @param bussInventory
	 * @param bussInventoryDetailsList
	 * @param bussInventoryInoutDetailsList
	 */
	public void saveMain(BussInventory bussInventory,List<BussInventoryDetails> bussInventoryDetailsList,List<BussInventoryInoutDetails> bussInventoryInoutDetailsList) ;
	
	/**
	 * 修改一对多
	 *
   * @param bussInventory
   * @param bussInventoryDetailsList
   * @param bussInventoryInoutDetailsList
	 */
	public void updateMain(BussInventory bussInventory,List<BussInventoryDetails> bussInventoryDetailsList,List<BussInventoryInoutDetails> bussInventoryInoutDetailsList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	List<BussInventoryPage> getByIds(List<String> ids,String warehouseId);

	IPage<BussInventory> myPage(Page<BussInventory> page, QueryWrapper<BussInventory> queryWrapper);

	IPage<BussInventory> myInventoryPage(Page<BussInventory> page, BussInventory bussInventory);
}
